package com.hbfu.zggdwlzzsx.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hbfu.zggdwlzzsx.entity.Chapters;
import com.hbfu.zggdwlzzsx.mapper.ChapterMapper;
import com.hbfu.zggdwlzzsx.service.ChapterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ChapterServiceImpl extends ServiceImpl<ChapterMapper, Chapters> implements ChapterService {

    @Autowired
    private ChapterMapper chapterMapper;

    @Override
    public Chapters getByChapterId(Integer chapterid) {
//        log.info("{}",chapterMapper.selectByChapterId(chapterid));
        return chapterMapper.selectByChapterId(chapterid);
    }

}
